package cn.bdqn.dao;

import cn.bdqn.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface UserDao extends JpaRepository<User,Long>,
        JpaSpecificationExecutor<User> {
    /**
     * 根据方法名命名规则方式查询：
     * 根据用户名和密码查询
     * @param usrName
     * @param usrPassword
     * @return
     */
    public User findByUsrNameAndUsrPassword(String usrName,String usrPassword);
}
